package com.fire.communication.common.utils.appkit;

import cn.hutool.core.convert.Convert;
import cn.hutool.setting.Setting;

public final class ElectricfireKit {

	private static final Setting setting;
	
	static {
		setting = new Setting("config/electricfire.setting");
	}

	public static String getStr(String key) {
		return Convert.toStr(setting.get(key), "");
	}

	public static String getStr(String key, String gp) {
		return setting.getStr(key, gp, "");
	}

	public static Integer getInt(String key) {
		return Convert.toInt(getStr(key), 0);
	}

	public static Integer getInt(String key, String gp) {
		return Convert.toInt(getStr(key, gp), 0);
	}

	public static Long getLong(String key, String gp) {
		return Convert.toLong(getStr(key, gp), 0l);
	}

	public static Long getLong(String key) {
		return Convert.toLong(getStr(key), 0l);
	}

}
